package com.neusoft.yuejian_01.util;

import android.content.Context;
import android.content.SharedPreferences;

public class CacheInfo {

    private SharedPreferences sharedPreferences;

    public CacheInfo(Context context){
        sharedPreferences = context.getSharedPreferences("CacheInfo", Context.MODE_PRIVATE);
    }
//存数据
    public void setPassRememberCache(boolean flag){
        SharedPreferences.Editor editor = sharedPreferences.edit();
        editor.putBoolean("Cache_PassRemember",flag);
        editor.commit();
    }
    //获取数据
    public boolean getPassRememberCache(){
        return sharedPreferences.getBoolean("Cache_PassRemember",false);
    }


}
